package com.whub507.msgmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whub507.msgmanager.common.vo.GroupVO;
import com.whub507.msgmanager.domain.Group;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GroupMapper extends BaseMapper<Group> {

//    List<Group> selectAllByUserId(Integer userId);
//
//    List<Group> selectDefaultGroup();

    Integer insertNewGroup(Group group);

    List<Group> selectAllByUserIdAndGroupName(Integer userId, String groupName);

    List<GroupVO> selectAllGroupByUserId(Integer userId);

}
